package com.sdyc.ndmp.cls.dtd;

import java.io.Serializable;
import java.util.Map;
import java.util.Set;

/**
 * Created by sssd on 2017/7/13.
 */
public class Condition implements Serializable {

    private final static long serialVersionUID = 1L;


    /**
     * 是否是叶子节点
     */
    protected boolean isLeaf;


    /**
     * 父节点
     */
    protected Integer parentId;


    /**
     * 当前节点 ID
     */
    protected Integer id;


    /**
     * 当前节点层级
     */
    protected Integer level;


    /**
     * 节点类型
     */
    protected String type;

    /**
     * 节点上的规则
     */
    protected Map<String, Set<String>> rule;



    public Condition() {
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Map<String, Set<String>> getRule() {
        return rule;
    }

    public void setRule(Map<String, Set<String>> rule) {
        this.rule = rule;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public boolean isLeaf() {
        return isLeaf;
    }

    public void setLeaf(boolean leaf) {
        isLeaf = leaf;
    }

}
